package cn.sh.yhk.configure.system;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * 暂停下
 *
 * @Auther: adminyhk
 * @Date: 2018/10/19 09:18
 * @Description:
 */
@Component

public class ProjectValidate implements CommandLineRunner {


    //@Resource
 //   private JmsMessagingTemplate jmsMessagingTemplate;

    //
//    public void sendMsg(String destinationName, String message) {
//        System.out.println("============>>>>> 发送queue消息 " + message);
//        Destination destination = new ActiveMQQueue(destinationName);
//
//        jmsMessagingTemplate.convertAndSend(destination, message);
//    }
//
    @Override
    public void run(String... args) {
//        Destination destinationQueue = new ActiveMQQueue("YYHK");
//        // jmsMessagingTemplate.convertAndSend(destinationQueue, "1111");
//        String response = jmsMessagingTemplate.convertSendAndReceive(destinationQueue, "11", String.class);
//        System.out.println("===" + response);
//        //  sendMsg("asa", "123456");
    }
}


